-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dynamic code block highlighting documentation #1626
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/E2hU1fuYRKHjcuBd2BGy291C87EH |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 94ea16e:
|
That code block actually shows how to create a 'code' element and highlight it. It's not a demo of this though, and it's written in JavaScript. If u want, I can add a demo too (you click a button, adds some highlighted code block to page). |
yea, what I meant is that the
should render this code as |
Oh I misunderstood your comment @Koooooo-7. This is probably because you need a |
SInce you need an external Prism script to include bash in recognizable languages, I'll change the language of this example to javascript. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Summary
Small documentation change that shows how to highlight javascript-created code blocks in docsify.
What kind of change does this PR introduce?
Docs
For any code change,
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
Related issue, if any:
Tested in the following browsers: